#pragma once
#include "point.h"
#include <time.h>
#include <graphics.h>
#include "food.h"
class Snake 
{
	enum pos
	{
		LEFT,RIGHT,UP,DOWN
	};
public:
	Snake(int size=100);
	void drawSnake();
	void moveSnake();
	void keyDown();
	Point* getXY();
	int& getSize();
	//void eatFood(Food* food);
protected:
	Point* xy;
	int curSize;
	int position;
};